package Vista;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Vector;

import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JRadioButton;
import javax.swing.JTextField;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


import Controlador.Sistema;
import Persistencia.AdministradorPersistenciaServico;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class ViewBajaServicio extends javax.swing.JFrame {
	private JLabel jLNumeoPlan;
	private JComboBox jComboBServicio;
	private JButton jBCancelar;
	private JButton jBguardar;
	public static ViewBajaServicio instancia;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				ViewBajaServicio inst = new ViewBajaServicio();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	private ViewBajaServicio() {
		super();
		initGUI();
	}
	
	public static ViewBajaServicio getInstancia() 
	{
		if (instancia== null)
			instancia = new ViewBajaServicio();
		return instancia;
	}
		
	
	
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			this.setTitle("Baja de Servicio");
			{
				jLNumeoPlan = new JLabel();
				getContentPane().add(jLNumeoPlan);
				jLNumeoPlan.setText("Servicio");
				jLNumeoPlan.setBounds(18, 27, 151, 14);
			}
			{
				ComboBoxModel jComboBox1Model = 
					new DefaultComboBoxModel(
							new String[] { "", "VOZ","SMS", "DATOS", "PAQUETE"});
				jComboBServicio = new JComboBox();
				getContentPane().add(jComboBServicio);
				jComboBServicio.setModel(jComboBox1Model);
				jComboBServicio.setBounds(187, 18, 351, 21);
				jComboBServicio.setOpaque(false);
				jComboBServicio.setVisible(true);
				jComboBServicio.addItemListener(new ItemListener() {
					public void itemStateChanged(ItemEvent evt) {
						System.out.println("jComboBServicio.itemStateChanged, event="+evt);
						String seleccion = (String) jComboBServicio.getSelectedItem();
						if (seleccion == "PAQUETE")
						{
							
						}
						else
						{

						}
					}
				});

			}
			{
				jBguardar = new JButton();
				getContentPane().add(jBguardar);
				jBguardar.setText("GUARDAR");
				jBguardar.setBounds(91, 61, 108, 21);
				jBguardar.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						System.out.println("jBguardar.actionPerformed, event="+evt);
				String seleccionG = (String) jComboBServicio.getSelectedItem();
						
					}
				});
			}
			{
				jBCancelar = new JButton();
				getContentPane().add(jBCancelar);
				jBCancelar.setText("CANCELAR");
				jBCancelar.setBounds(443, 61, 95, 21);
			}
			pack();
			this.setSize(575, 128);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
